#ifndef CONSOLEWRAPPER_H
#define CONSOLEWRAPPER_H

#include <QObject>
#include <QProcess>
#include "windows.h"

class ConsoleWrapper : public QObject
{
	Q_OBJECT

public:
	explicit ConsoleWrapper(QString program, QObject *parent = 0);
	void sendMessage(uint iMsgID, int wParam = 0, int lParam = 0);

public slots:
	void SlotStart();

signals:
	void SignalProcessStart();
	void SignalProcessEnd(int,QProcess::ExitStatus);
	void SignalStandbyDone();
	void SignalReadyDone();
	void SignalEXPOON();
	void SignalEXPOOFF();
	void SignalIMGDone();

private slots:
	void SlotProcessEnd(int, QProcess::ExitStatus);
	void SlotError(QProcess::ProcessError);

private:
	QProcess m_proc;
};

#endif // CONSOLEWRAPPER_H
